import request from '@/utils/request'
let paramsTemp = {
  // ...JSON.parse(sessionStorage.getItem("PICKTIME")),
  columnName1: "prov_org_uuid",
  columnName2: "city_org_uuid",
  columnName3: "city_org_name",
  orgUuid: "00000000000000000000000011340001",
}
// 内管大屏
// 真烟查获地区排名
export const getInFlowCityRank = (params = {}) =>
  request({
    url: '/inflow_city_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟查获品规排名
export const getInFlowGoodsRank = (params = {}) =>
  request({
    url: '/inflow_goods_name_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 查获量排名、同比，查获量、同比
export const getInFlowNum = (params = {}) =>
  request({
    url: '/abnormal_flow_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟流出总量（万支）及同比
export const getOutFlowTotalNum = (params = {}) =>
  request({
    url: '/outflow_total_num_yearonyear_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟查获总量（万支）及同比
export const getInFlowTotalNum = (params = {}) =>
  request({
    url: '/inflow_total_num_yearonyear_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟流出案件统计
export const getOutFlowStat = (params = {}) =>
  request({
    url: '/outflow_stat_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 真烟查获案件统计
export const getInFlowStat = (params = {}) =>
  request({
    url: '/inflow_stat_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 预警产生数及同比
export const getWarnNum = (params = {}) =>
  request({
    url: '/warn_num_topN_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 监督检查及同比
export const getCheckStat = (params = {}) =>
  request({
    url: '/check_suggest_feedback_stat_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 外流重点户及同比
export const getOutflowLargeLicNum = (params = {}) =>
  request({
    url: '/outflow_large_lic_top_city_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// (省内流出)真烟流出地区排名数据
export const getOutflowCityRank = (params = {}) =>
  request({
    url: '/outflow_city_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

// (省内流出)真烟流出品规排名数据
export const getoutFlowGoodsRank = (params = {}) =>
  request({
    url: '/outflow_goods_name_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })
// 流出量排名、同比，流出量、同比
export const getoutFlowNumRank = (params = {}) =>
  request({
    url: '/abnormal_flow_ranking_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })

  // 内管真烟异流 流出量查获量排名
export const getoutInFlowNumRank = (params = {}) =>
  request({
    url: '/home_country_rank_ah_v1/',
    method: 'get',
    params: { ...paramsTemp, ...params },
    custom: { catch: true },
  })